package com.cqnu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqnu.dao.ThesisDao;
import com.cqnu.entity.Thesis;
import com.cqnu.service.IThesisService;
@Service("thesisService")
public class ThesisServiceImpl extends BaseServiceImpl implements IThesisService{

	@Resource
	private ThesisDao thesisDao;
	
	@Override
	public List<Thesis> find(Map<String, Object> map) {
		return thesisDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		return thesisDao.getTotal(map);
	}
	
	@Override
	public int update(Thesis obj) {
		return thesisDao.update(obj);
	}

	@Override
	public int add(Thesis obj) {
		return thesisDao.add(obj);
	}

	@Override
	public int delete(Integer id) {
		return thesisDao.delete(id);
	}

	@Override
	public Thesis getById(Integer id) {
		return thesisDao.getById(id);
	}

}
